#include <iostream>
#include <vector>
#include <boost/algorithm/string.hpp>



int main()
{
    std::vector<std::string> tokens;
    const std::string str = "1:判断回文数::::::简单:1:30000";
    const std::string sep = ":";
    //                             分隔符            是否压缩切分token_compress_on开启，token_compress_off关闭
    boost::split(tokens, str, boost::is_any_of(sep), boost::algorithm::token_compress_on);

    for(auto &iter : tokens){
        std::cout << iter << std::endl;
    }
    return 0;
}